package com.baobaotao.proxy;

import java.beans.*;
 public class ChartBeanBeanInfo extends SimpleBeanInfo{
    public PropertyDescriptor[] getPropertyDescriptors() {
       try{

//①将TitlePositionEditor绑定到ChartBean的titlePosition属性中  
PropertyDescriptor titlePositionDescriptor                       
             = new PropertyDescriptor("titlePosition", CharBean.class);
          titlePositionDescriptor.setPropertyEditorClass(TitlePositionEditor.class);
           
 
//②将InverseEditor绑定到ChartBean的inverse属性中          
/*PropertyDescriptor inverseDescriptor                        
             = new PropertyDescriptor("inverse", CharBean.class);                    
          inverseDescriptor.setPropertyEditorClass(InverseEditor.class); */
          
       }
       catch (IntrospectionException e){
          e.printStackTrace();
          return null;
       }
	return null;
    }
 }